# $Id: PKGBUILD 83342 2013-01-29 21:58:18Z jsteel $
# Maintainer: Jonathan Steel <mail at jsteel dot org>
# Contributor: megadriver <megadriver at gmx dot com>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
# Contributor: kagan <juanynie@mi.madritel.es>
# Contributor: Hans-Kristian Arntzen <maister@archlinux.us>

pkgname=mednafen
pkgver=0.9.28
_pkgver=0.9.28-wip
pkgrel=1
pkgdesc="A command-line multi-system gaming emulator"
url="http://mednafen.sourceforge.net"
license=('GPL')
arch=('i686' 'x86_64')
depends=('libcdio' 'libsamplerate' 'sdl_net' 'zlib')
makedepends=('mesa' 'glu')
replaces=('mednafen-wip')
install="$pkgname.install"
source=(http://downloads.sourceforge.net/mednafen/$pkgname-$_pkgver.tar.bz2)
md5sums=('2b9f0be9f77a6e1b5d26093e30b24e77')

build() {
  cd "$srcdir"/$pkgname

  ./configure --prefix=/usr

  make
}

package() {
  cd "$srcdir"/$pkgname

  make DESTDIR="$pkgdir"/ install
}
